package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.platform.dao.IPublicActivitiesDao;
import com.financing.platform.dao.IPublicActivitiesPersonDao;
import com.financing.platform.dto.PublicActivitiesDTO;
import com.financing.platform.dto.PublicActivitiesPersonDTO;
import com.financing.platform.service.IPublicActivitiesService;
import com.financing.platform.vo.PublicActivitiesVO;

/**
 * 
 * @ClassName: PublicActivitiesServiceImpl
 * @Description: 公共活动服务器层实现 
 * @author  qiye
 * @date 2014年11月6日 下午4:17:22
 *
 */
@Service("publicActivitiesServiceImpl")
@Transactional(rollbackFor=Exception.class)
public class PublicActivitiesServiceImpl extends BaseServiceImpl implements IPublicActivitiesService {

	@Autowired
	private IPublicActivitiesDao publicActivitiesDaoImpl;
	
	@Autowired
	private IPublicActivitiesPersonDao publicActivitiesPersonDaoImpl;
	
	public int addPublicActivities(PublicActivitiesDTO publicActivitiesDTO)
			throws SQLException {
		return publicActivitiesDaoImpl.addPublicActivites(publicActivitiesDTO);
	}

	public List<PublicActivitiesVO> publicActivitiesList(PublicActivitiesDTO publicActivitiesDTO) throws SQLException {
		return publicActivitiesDaoImpl.publicActivitiesList(publicActivitiesDTO);
	}

	public List<PublicActivitiesPersonDTO> publicActivitiesPersonList(PublicActivitiesPersonDTO publicActivitiesPersonDTO)throws SQLException {
		return publicActivitiesPersonDaoImpl.publicActivitiesPersonList(publicActivitiesPersonDTO);
	}

	public PublicActivitiesDTO queryPublicActivities(
			PublicActivitiesDTO publicActivitiesDTO) throws SQLException {
		return publicActivitiesDaoImpl.queryPublicActivities(publicActivitiesDTO);
	}

	public int updatePublicActivities(PublicActivitiesDTO publicActivitiesDTO)
			throws SQLException {
		return publicActivitiesDaoImpl.updatePublicActivities(publicActivitiesDTO);
	}

	@Override
	public int publicActivitiesListCount(PublicActivitiesDTO publicActivitiesDTO)
			throws SQLException {
		return publicActivitiesDaoImpl.publicActivitiesListCount(publicActivitiesDTO);
	}


}
